package com.sunelec.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ElectricExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ElectricExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andElectricIdIsNull() {
            addCriterion("electric_id is null");
            return (Criteria) this;
        }

        public Criteria andElectricIdIsNotNull() {
            addCriterion("electric_id is not null");
            return (Criteria) this;
        }

        public Criteria andElectricIdEqualTo(String value) {
            addCriterion("electric_id =", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdNotEqualTo(String value) {
            addCriterion("electric_id <>", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdGreaterThan(String value) {
            addCriterion("electric_id >", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdGreaterThanOrEqualTo(String value) {
            addCriterion("electric_id >=", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdLessThan(String value) {
            addCriterion("electric_id <", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdLessThanOrEqualTo(String value) {
            addCriterion("electric_id <=", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdLike(String value) {
            addCriterion("electric_id like", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdNotLike(String value) {
            addCriterion("electric_id not like", value, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdIn(List<String> values) {
            addCriterion("electric_id in", values, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdNotIn(List<String> values) {
            addCriterion("electric_id not in", values, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdBetween(String value1, String value2) {
            addCriterion("electric_id between", value1, value2, "electricId");
            return (Criteria) this;
        }

        public Criteria andElectricIdNotBetween(String value1, String value2) {
            addCriterion("electric_id not between", value1, value2, "electricId");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageIsNull() {
            addCriterion("AC1_voltage is null");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageIsNotNull() {
            addCriterion("AC1_voltage is not null");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageEqualTo(Float value) {
            addCriterion("AC1_voltage =", value, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageNotEqualTo(Float value) {
            addCriterion("AC1_voltage <>", value, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageGreaterThan(Float value) {
            addCriterion("AC1_voltage >", value, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageGreaterThanOrEqualTo(Float value) {
            addCriterion("AC1_voltage >=", value, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageLessThan(Float value) {
            addCriterion("AC1_voltage <", value, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageLessThanOrEqualTo(Float value) {
            addCriterion("AC1_voltage <=", value, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageIn(List<Float> values) {
            addCriterion("AC1_voltage in", values, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageNotIn(List<Float> values) {
            addCriterion("AC1_voltage not in", values, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageBetween(Float value1, Float value2) {
            addCriterion("AC1_voltage between", value1, value2, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1VoltageNotBetween(Float value1, Float value2) {
            addCriterion("AC1_voltage not between", value1, value2, "ac1Voltage");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentIsNull() {
            addCriterion("AC1_current is null");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentIsNotNull() {
            addCriterion("AC1_current is not null");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentEqualTo(Float value) {
            addCriterion("AC1_current =", value, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentNotEqualTo(Float value) {
            addCriterion("AC1_current <>", value, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentGreaterThan(Float value) {
            addCriterion("AC1_current >", value, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentGreaterThanOrEqualTo(Float value) {
            addCriterion("AC1_current >=", value, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentLessThan(Float value) {
            addCriterion("AC1_current <", value, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentLessThanOrEqualTo(Float value) {
            addCriterion("AC1_current <=", value, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentIn(List<Float> values) {
            addCriterion("AC1_current in", values, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentNotIn(List<Float> values) {
            addCriterion("AC1_current not in", values, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentBetween(Float value1, Float value2) {
            addCriterion("AC1_current between", value1, value2, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc1CurrentNotBetween(Float value1, Float value2) {
            addCriterion("AC1_current not between", value1, value2, "ac1Current");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageIsNull() {
            addCriterion("AC2_voltage is null");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageIsNotNull() {
            addCriterion("AC2_voltage is not null");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageEqualTo(Float value) {
            addCriterion("AC2_voltage =", value, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageNotEqualTo(Float value) {
            addCriterion("AC2_voltage <>", value, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageGreaterThan(Float value) {
            addCriterion("AC2_voltage >", value, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageGreaterThanOrEqualTo(Float value) {
            addCriterion("AC2_voltage >=", value, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageLessThan(Float value) {
            addCriterion("AC2_voltage <", value, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageLessThanOrEqualTo(Float value) {
            addCriterion("AC2_voltage <=", value, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageIn(List<Float> values) {
            addCriterion("AC2_voltage in", values, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageNotIn(List<Float> values) {
            addCriterion("AC2_voltage not in", values, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageBetween(Float value1, Float value2) {
            addCriterion("AC2_voltage between", value1, value2, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2VoltageNotBetween(Float value1, Float value2) {
            addCriterion("AC2_voltage not between", value1, value2, "ac2Voltage");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentIsNull() {
            addCriterion("AC2_current is null");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentIsNotNull() {
            addCriterion("AC2_current is not null");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentEqualTo(Float value) {
            addCriterion("AC2_current =", value, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentNotEqualTo(Float value) {
            addCriterion("AC2_current <>", value, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentGreaterThan(Float value) {
            addCriterion("AC2_current >", value, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentGreaterThanOrEqualTo(Float value) {
            addCriterion("AC2_current >=", value, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentLessThan(Float value) {
            addCriterion("AC2_current <", value, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentLessThanOrEqualTo(Float value) {
            addCriterion("AC2_current <=", value, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentIn(List<Float> values) {
            addCriterion("AC2_current in", values, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentNotIn(List<Float> values) {
            addCriterion("AC2_current not in", values, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentBetween(Float value1, Float value2) {
            addCriterion("AC2_current between", value1, value2, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc2CurrentNotBetween(Float value1, Float value2) {
            addCriterion("AC2_current not between", value1, value2, "ac2Current");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageIsNull() {
            addCriterion("AC3_voltage is null");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageIsNotNull() {
            addCriterion("AC3_voltage is not null");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageEqualTo(Float value) {
            addCriterion("AC3_voltage =", value, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageNotEqualTo(Float value) {
            addCriterion("AC3_voltage <>", value, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageGreaterThan(Float value) {
            addCriterion("AC3_voltage >", value, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageGreaterThanOrEqualTo(Float value) {
            addCriterion("AC3_voltage >=", value, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageLessThan(Float value) {
            addCriterion("AC3_voltage <", value, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageLessThanOrEqualTo(Float value) {
            addCriterion("AC3_voltage <=", value, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageIn(List<Float> values) {
            addCriterion("AC3_voltage in", values, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageNotIn(List<Float> values) {
            addCriterion("AC3_voltage not in", values, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageBetween(Float value1, Float value2) {
            addCriterion("AC3_voltage between", value1, value2, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3VoltageNotBetween(Float value1, Float value2) {
            addCriterion("AC3_voltage not between", value1, value2, "ac3Voltage");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentIsNull() {
            addCriterion("AC3_current is null");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentIsNotNull() {
            addCriterion("AC3_current is not null");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentEqualTo(Float value) {
            addCriterion("AC3_current =", value, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentNotEqualTo(Float value) {
            addCriterion("AC3_current <>", value, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentGreaterThan(Float value) {
            addCriterion("AC3_current >", value, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentGreaterThanOrEqualTo(Float value) {
            addCriterion("AC3_current >=", value, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentLessThan(Float value) {
            addCriterion("AC3_current <", value, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentLessThanOrEqualTo(Float value) {
            addCriterion("AC3_current <=", value, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentIn(List<Float> values) {
            addCriterion("AC3_current in", values, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentNotIn(List<Float> values) {
            addCriterion("AC3_current not in", values, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentBetween(Float value1, Float value2) {
            addCriterion("AC3_current between", value1, value2, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andAc3CurrentNotBetween(Float value1, Float value2) {
            addCriterion("AC3_current not between", value1, value2, "ac3Current");
            return (Criteria) this;
        }

        public Criteria andActivePowerIsNull() {
            addCriterion("active_power is null");
            return (Criteria) this;
        }

        public Criteria andActivePowerIsNotNull() {
            addCriterion("active_power is not null");
            return (Criteria) this;
        }

        public Criteria andActivePowerEqualTo(Float value) {
            addCriterion("active_power =", value, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerNotEqualTo(Float value) {
            addCriterion("active_power <>", value, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerGreaterThan(Float value) {
            addCriterion("active_power >", value, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerGreaterThanOrEqualTo(Float value) {
            addCriterion("active_power >=", value, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerLessThan(Float value) {
            addCriterion("active_power <", value, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerLessThanOrEqualTo(Float value) {
            addCriterion("active_power <=", value, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerIn(List<Float> values) {
            addCriterion("active_power in", values, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerNotIn(List<Float> values) {
            addCriterion("active_power not in", values, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerBetween(Float value1, Float value2) {
            addCriterion("active_power between", value1, value2, "activePower");
            return (Criteria) this;
        }

        public Criteria andActivePowerNotBetween(Float value1, Float value2) {
            addCriterion("active_power not between", value1, value2, "activePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerIsNull() {
            addCriterion("reactive_power is null");
            return (Criteria) this;
        }

        public Criteria andReactivePowerIsNotNull() {
            addCriterion("reactive_power is not null");
            return (Criteria) this;
        }

        public Criteria andReactivePowerEqualTo(Float value) {
            addCriterion("reactive_power =", value, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerNotEqualTo(Float value) {
            addCriterion("reactive_power <>", value, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerGreaterThan(Float value) {
            addCriterion("reactive_power >", value, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerGreaterThanOrEqualTo(Float value) {
            addCriterion("reactive_power >=", value, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerLessThan(Float value) {
            addCriterion("reactive_power <", value, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerLessThanOrEqualTo(Float value) {
            addCriterion("reactive_power <=", value, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerIn(List<Float> values) {
            addCriterion("reactive_power in", values, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerNotIn(List<Float> values) {
            addCriterion("reactive_power not in", values, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerBetween(Float value1, Float value2) {
            addCriterion("reactive_power between", value1, value2, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andReactivePowerNotBetween(Float value1, Float value2) {
            addCriterion("reactive_power not between", value1, value2, "reactivePower");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityIsNull() {
            addCriterion("daily_electricity is null");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityIsNotNull() {
            addCriterion("daily_electricity is not null");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityEqualTo(Float value) {
            addCriterion("daily_electricity =", value, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityNotEqualTo(Float value) {
            addCriterion("daily_electricity <>", value, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityGreaterThan(Float value) {
            addCriterion("daily_electricity >", value, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityGreaterThanOrEqualTo(Float value) {
            addCriterion("daily_electricity >=", value, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityLessThan(Float value) {
            addCriterion("daily_electricity <", value, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityLessThanOrEqualTo(Float value) {
            addCriterion("daily_electricity <=", value, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityIn(List<Float> values) {
            addCriterion("daily_electricity in", values, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityNotIn(List<Float> values) {
            addCriterion("daily_electricity not in", values, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityBetween(Float value1, Float value2) {
            addCriterion("daily_electricity between", value1, value2, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andDailyElectricityNotBetween(Float value1, Float value2) {
            addCriterion("daily_electricity not between", value1, value2, "dailyElectricity");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterionForJDBCDate("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterionForJDBCDate("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterionForJDBCDate("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterionForJDBCDate("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterionForJDBCTime("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterionForJDBCTime("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterionForJDBCTime("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterionForJDBCTime("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andPowerFactorIsNull() {
            addCriterion("power_factor is null");
            return (Criteria) this;
        }

        public Criteria andPowerFactorIsNotNull() {
            addCriterion("power_factor is not null");
            return (Criteria) this;
        }

        public Criteria andPowerFactorEqualTo(Float value) {
            addCriterion("power_factor =", value, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorNotEqualTo(Float value) {
            addCriterion("power_factor <>", value, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorGreaterThan(Float value) {
            addCriterion("power_factor >", value, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorGreaterThanOrEqualTo(Float value) {
            addCriterion("power_factor >=", value, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorLessThan(Float value) {
            addCriterion("power_factor <", value, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorLessThanOrEqualTo(Float value) {
            addCriterion("power_factor <=", value, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorIn(List<Float> values) {
            addCriterion("power_factor in", values, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorNotIn(List<Float> values) {
            addCriterion("power_factor not in", values, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorBetween(Float value1, Float value2) {
            addCriterion("power_factor between", value1, value2, "powerFactor");
            return (Criteria) this;
        }

        public Criteria andPowerFactorNotBetween(Float value1, Float value2) {
            addCriterion("power_factor not between", value1, value2, "powerFactor");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}